package com.auth.service;

import com.auth.model.BsRolePermission;
import com.exception.bean.Result;

import java.util.List;

/**
 * Created by Administrator on 2017/8/22 0022.角色权限逻辑类
 */
public interface BsRolePermissionService {
    /**
     * 创建角色权限
     * @param roleId 角色ID
     * @param type   类型
     * @param menuId 菜单ID
     * @param itemId 功能项ID
     * @return
     * @throws Exception
     */
    Result createBsRolePermission(String roleId,int type,String menuId,String itemId,String unitiId ) throws Exception;

    /**
     * 修改角色权限
     * @param bsRolePermission
     * @return
     * @throws Exception
     */
    Result updateBsRolePermission(BsRolePermission bsRolePermission) throws Exception;

    /**
     * 查询角色权限列表
     * @param pageNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    List<BsRolePermission>  findAllPage(int pageNum,int pageSize) throws Exception;

    /**
     * 删除角色权限
     * @param id
     * @return
     * @throws Exception
     */
    Result deleteBsRolePermission(String  id) throws Exception;

}
